﻿using HDJ.Framework.Core;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HDJ.Framework.Core
{
    public class LogicSystemEditorTools
    {

        public static object GetDefultValueByTypeName(string typeName)
        {

            if (typeName == typeof(string).FullName)
                return "";
            else if (typeName == typeof(int).FullName)
                return 0;
            else if (typeName == typeof(float).FullName)
                return 0f;
            else if (typeName == typeof(Vector2).FullName)
                return Vector2.zero;
            else if (typeName == typeof(Vector3).FullName)
                return Vector3.zero;
            else if (typeName == typeof(bool).FullName)
                return false;

            return null;

        }

    }
}